﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading;

namespace AsyncFtp {
	public class FtpState {
		ManualResetEvent wait;
		FtpWebRequest m_request;
		string m_filename;
		Exception m_operationException = null;
		string status;

		public FtpState () {
			wait = new ManualResetEvent( false );
		}

		public ManualResetEvent OperationComplete { get { return wait; } }
		public FtpWebRequest Request { get { return m_request; } set { m_request = value; } }
		public string FileName { get { return m_filename; } set { m_filename = value; } }
		public Exception OperationException { get { return m_operationException; } set { m_operationException = value; } }
		public string StatusDescription { get { return status; } set { status = value; } }
	}
}
